package org.third.integration.auth.jaas.authorization;

import java.util.ArrayList;
import java.util.List;

public class UserAuthority {
    List<String> roles;

    public UserAuthority() {
        roles = new ArrayList<String>();

    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public void addRole(String role) {
        this.roles.add(role);
    }

    @Override
    public String toString() {
        return this.getClass().getSimpleName() + ":" + roles;
    }
}
